package com.ph.monitorPlatform.controller;


import com.ph.monitorPlatform.service.IViewService;
import com.ph.monitorPlatform.utils.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zuohongyu
 * @since 2020-04-09
 */
@RestController
@RequestMapping("/view")
public class ViewController {

    @Autowired
    private IViewService viewService;

    @GetMapping("/copy")
    @ResponseBody
    public JsonResult copyView(int viewId){
        return viewService.copyView(viewId);
    }
}

